{extend name="../../layout" /}

{block name="content"}
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">添加教师</h3>
    </div>
    <div class="panel-body">
        <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">姓名:</label>
                <div class="col-xs-12 col-sm-8">
                    <input type="text" class="form-control" name="name" required placeholder="请输入教师姓名">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">手机号:</label>
                <div class="col-xs-12 col-sm-8">
                    <input type="text" class="form-control" name="mobile" required placeholder="请输入手机号">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">所属学校:</label>
                <div class="col-xs-12 col-sm-8">
                    <select name="school_id" class="form-control selectpicker" required>
                        <option value="">请选择学校</option>
                        {volist name="schoolList" id="school"}
                        <option value="{$school.id}">{$school.name}</option>
                        {/volist}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">教龄:</label>
                <div class="col-xs-12 col-sm-8">
                    <input type="number" class="form-control" name="teaching_years" placeholder="请输入教龄">
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-12 col-sm-8 col-sm-offset-2">
                    <button type="submit" class="btn btn-success btn-submit">提交</button>
                    <button type="reset" class="btn btn-default">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}